package com.zcx.qshop.conn;

import org.json.JSONObject;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

@HttpInlet(Conn.INLET_JSON_SUGGESTIONADD)
public class JsonSuggestionaddAsyGet extends QSAsyGet {
	
	public String uid, content; 

	public JsonSuggestionaddAsyGet(String uid, String content, AsyCallBack asyCallBack) {

		super(asyCallBack);
		
		this.uid = uid;

		try {

			this.content = URLEncoder.encode(content, "utf-8");

		} catch (UnsupportedEncodingException e) {

			e.printStackTrace();

		}

	}
	
	@Override
	public Object parser(JSONObject object) {
		
		if(object.optString("message").equals("1")){
			
			return "";
			
		}
		
		return null;
		
	}
 

}
